package com.yima.baseproj.module.config.utils;

/**
 * @author 一码
 * @description
 * @create 2020-12-28 11:13:38
 * @contact www.yanwei.xin 微信：13716343106 邮件：1424529270@qq.com
 **/
public enum ResultCodeE {
    SUCCESS(200,"请求成功","请求成功"),
    SYS_ERROR(500,"系统错误,请联系管理员","系统错误"),
    PARAMETER_FAIL(2001,"传过来的参数校验","填写值不符合要求"),
    DATA_FAIL(2002,"操作时的数据校验","数据不存在,请刷新重试"),
    NO_ACCESS(2004,"没有权限","没有权限");

    private int code;
    private String des;
    private String value;
    private ResultCodeE(int code, String des, String value) {
        this.code = code;
        this.des = des;
        this.value = value;
    }

    /**
     * 获取编码
     * @return
     */
    public int getCode(){
        return code;
    }

    /**
     * 获取描述
     * @return
     */
    public String getDes(){
        return des;
    }
}
